/**
 * @author Ashley
 * 
 * Sub-class of BasicType which is a sub-class of Type. 
 * Contains the name and size of the BasicType float.
 */
public class FloatType extends BasicType {
	/*
	 * Default ctor that creates an FloatType object with
	 * name "float" and size of 4 (bytes).
	 */
	public FloatType() {
		super("float", 4);
	}
	
	public FloatType(String strName) {
		super(strName, 4);
	}
	
	@Override
	public boolean isFloat() { 
		return true; 
	}
	
	@Override
	public boolean isBasic() {
		return true;
	}
	
	@Override
	public boolean isAssignableTo(Type t) {
		if(t.isFloat()) {
			return true;
		}
		return false;
	}
	
	@Override
	public boolean isEquivalentTo(Type t) {
		if(t.isFloat()) {
			return true;
		}
		return false;
	}
}
